package com.bw.myapply_module.myapply

import com.bw.myapply_module.myapply.entity.ApplyEntity
import com.kf.common.entity.BaseEntity
import com.kf.common.mvi.model.BaseModel
import com.kf.lib_network.retrofit.HttpType
import com.kf.lib_network.retrofit.RetrofitFactory
import kotlinx.coroutines.flow.Flow

class ApplyModel : BaseModel() {

    fun requestApplyAll(map: HashMap<String, Any>): Flow<BaseEntity<List<ApplyEntity>>> {
        return RetrofitFactory().createRetrofit(HttpType.TOKEN_SIGN)
            .create(ApiService::class.java)
            .requestApplyAll(createBody(map))
    }

}